package com.confess.model;

import java.util.Date;

import javax.annotation.RegEx;
import javax.persistence.Id;

import net.sf.oval.constraint.Length;
import net.sf.oval.constraint.NotEmpty;
import net.sf.oval.constraint.NotNull;

import com.googlecode.objectify.annotation.Entity;

@Entity
public class Confession {

	@Id 
	private Long id;
	
	@NotNull
	@NotEmpty
	private Date date;

	@NotNull
	@NotEmpty
	@Length(max=200)
	private String confessionBody;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getConfessionBody() {
		return confessionBody;
	}

	public void setConfessionBody(String confessionBody) {
		this.confessionBody = confessionBody;
	}
	
	
}
